/**
 * date:2023/05/29
 * author:tongchao.liu
 * version:1.0
 * description: Ueditor插件扩展
 */
layui.define(["element", "jquery"], function (exports) {
    var element = layui.element,
        $ = layui.$,
        // miniAdmin = layui.miniAdmin,
        layer = layui.layer;


    var CmfUEditor = {
		
        /**
         * 初始化 ueditor
		 * @param container_id  容器id
         * @param options  ueditor 初始化参数
         */
        render: function (container_id,options) {
			//option: {id:"img_upload",type:"once"}
			UE.delEditor(container_id);//先删除之前 的对象
			var ue = UE.getEditor(container_id,options); //添加编辑器
            return ue;
        },
        /**
         * 监听
         * @param options
         */
        listen: function (options) {
			
        },


    };

    exports("CmfUEditor", CmfUEditor);
});
